package com.itheima.day05.demo4;

import java.util.ArrayList;

public class MyArrayList<E> {

    private ArrayList<E> arrayList=new ArrayList<>();

    public MyArrayList<E> add(E e) {
        arrayList.add(e);
        return this;
    }

    public void remove(E e) {
        arrayList.remove(e);
    }

    @Override
    public String toString() {
        return arrayList.toString();
    }
}
